package com.yjq.programmer.dto;

import com.yjq.programmer.annotation.ValidateEntity;

/**
 * @author 杨杨吖
 * @QQ 823208782
 * @WX yjqi12345678
 * @create 2022-11-13 17:47
 */
public class LyricsDTO {

    private String id;

    @ValidateEntity(required=true,errorRequiredMsg="歌词所属音乐不能为空！")
    private String musicId;

    @ValidateEntity(required=true,requiredMaxValue=true,requiredMinValue=true,maxValue=59,minValue=0,errorRequiredMsg="分钟时间不能为空！",errorMaxValueMsg="分钟时间不能大于59！",errorMinValueMsg="分钟时间不能小于0！")
    private Integer minuteTime;

    @ValidateEntity(required=true,requiredMaxValue=true,requiredMinValue=true,maxValue=59,minValue=0,errorRequiredMsg="秒时间不能为空！",errorMaxValueMsg="秒时间不能大于59！",errorMinValueMsg="秒时间不能小于0！")
    private Integer secondTime;

    @ValidateEntity(required=true,requiredMaxLength=true,requiredMinLength=true,maxLength=128,minLength=1,errorRequiredMsg="歌词内容不能为空！",errorMaxLengthMsg="歌词内容长度不能大于128！",errorMinLengthMsg="歌词内容不能为空！")
    private String content;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMusicId() {
        return musicId;
    }

    public void setMusicId(String musicId) {
        this.musicId = musicId;
    }

    public Integer getMinuteTime() {
        return minuteTime;
    }

    public void setMinuteTime(Integer minuteTime) {
        this.minuteTime = minuteTime;
    }

    public Integer getSecondTime() {
        return secondTime;
    }

    public void setSecondTime(Integer secondTime) {
        this.secondTime = secondTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", musicId=").append(musicId);
        sb.append(", minuteTime=").append(minuteTime);
        sb.append(", secondTime=").append(secondTime);
        sb.append(", content=").append(content);
        sb.append("]");
        return sb.toString();
    }
}
